@import "iconfonts.css";
html,body,div,ul,ol,li,p,span{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
li{
    list-style: none;
}
.content
{

    width:942px;
    height:367px;
    background: #bec1c8;
    margin: 50px auto;
    border-radius: 10px;
    padding: 10px;
}
ul{
    position: relative;

}
li,ol{float: left;
    height: 56px;
    width:56px;
    margin-bottom: 8px;
    margin-right: 8px;
    background: #9e9e9e;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.18) inset;
    border-top: none;
    border-radius: 5px;
}
li>div{
    display: flex;
    width:56px;
    height:56px;
    border-radius: 5px;
    background: #eff0f2;
    border-top: 1px solid #f5f5f5;
    box-shadow: inset 0 0 25px #e8e8e8, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;
    cursor:pointer;
    transition:1s;
    justify-content: space-between;
    flex-direction: column;
    z-index: 2;
}

span{
    display: block;
    text-align: center;
    height: 28px;
    line-height: 28px;
    flex: 0.5;
    font-size: 12px;
    color:#a5a6aa ;
    user-select: none;
}

.first-line{

    height:25px;
}
.first-line>div{
    height:25px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-direction: row;
}
.first-line span{
    flex: 0.5;
    height: 25px;
    line-height: 25px;
}
.arrow-key li span.icon{
    padding-top:6px;
}

div:active{
    transform: translateY(2px);
    box-shadow: inset 0 0 10px #ccc, 0 0 3px #333;
    border-top: 1px solid #eee;
    background: rgba(230, 230, 230, 1);
}

.clear-margin{
    margin-right: 0;

}

.esc,.esc div{
    width: 90px;
}

.enter,.enter div{
    width:106px;
}
.control,.control div{

}
.shift1,.shift1 div{
    width: 75px;
}
.shift2,.shift2 div{
    width: 135px;
}
.command,.command div{
    width: 72px;
}
.space,.space div{
    width: 314px;
}
.return{
    width: 56px;
}
.return:after{
    content: '';
    position:absolute;
    right: 10px;
    top:107px;
    height: 120px;
    background: #9e9e9e;
    width: 40px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.18) inset;
    border-top: none;
    border-radius: 0 5px 5px 5px;
    z-index: 1;

}

.return:before{
    content: '';
    position: absolute;
    right: 45px;
    width: 10px;
    height: 52px;
    top:111px;
    background: #9e9e9e;

    z-index: 2;
}
.return div{
    height: 120px;
    width: 56px;
    background: transparent;
    box-shadow: none;
    border: none;
    display: block;
    z-index: 100;
}
.return span{
    background: #ededef;

}

.return div:after{
    content: '';
    position: absolute;
    width: 40px;
    top:50px;
    left: 16px;
    height: 14px;
    background: #ededef;
}
.return span:nth-of-type(1){
    box-shadow: 0 0 3px #333;
    border-radius: 5px 5px 0 5px;
    height: 56px;
    border-top:1px solid #f5f5f5;


}
.return span:nth-of-type(2){
    border-radius: 0 0 5px 5px;
    height: 64px;
    margin-left: 16px;
    box-shadow: 0 2px 0 #c3c3c3, 0 2px 3px #1d1c1c,0 -2px 3px #ededef ;
}

/*方向键*/
.arrow{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #bec1c8;
    box-shadow: none;
    border: none;
}
.arrow li{
    height:25px;
    margin: 0;
}
.arrow div{
    display: flex;
    justify-content: space-between;
    height:25px;
    flex-direction: row;

}

.arrow .icon{
    padding-top: 5px;
}


.arrow span{
    height: 25px;
    flex: 0.5;
}


/*没有按键的键盘 */

/*原料键盘   */
.start{
    left: 461px !important;
    top: 188px !important;
    transform: translateX(-50%) translateY(-50%) scale(2);
    z-index: 100;
    animation: up 1s linear forwards;
    animation-delay: 1s;


}

.back{
    left: 461px !important;
    top: 188px !important;
    transform: translateX(-50%) translateY(-50%) scale(2);
    z-index: 100;
    animation: down 2s linear forwards;

}
@keyframes up {
    0%{top:188px }
    100%{top:-230px;visibility: hidden; }
}
@keyframes down {
    0%{opacity:0; }
    99%{opacity: 0;}
    100%{opacity:1 }
}


/*选中状态*/
.chosen{
    box-shadow: 2px 2px 4px #3d8cfd,-2px -2px 4px #3d8cfd,2px -2px 4px #3d8cfd,-2px 2px 4px #3d8cfd;
}
/*空键盘*/
.empty{
    opacity: 0;
}






